package com.chenfan.mcn.model.dto;

import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Digits;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 直播红人结算单-财务审批DTO
 *
 * @author wulg
 * @date 2023/3/21
 **/
@Data
public class LiveStarSettlementFinanceExamineDTO implements Serializable {

    private static final long serialVersionUID = -4765486906571911491L;
    /**
     * 结算单ID
     */
    @NotNull(message = "【结算单ID】不能为空")
    private Long settlementId;

    /**
     * 应扣税额
     */
    @DecimalMin(value = "0.00")
    @Digits(integer = 10, fraction = 2, message = "【应扣税额】数值必须大于等于0，其中整数位最多{integer}位，小数位最多{fraction}位")
    private BigDecimal taxableAmount;

    /**
     * 打款金额
     */
    @NotNull(message = "【打款金额】不能为空")
    @DecimalMin(value = "0.00")
    @Digits(integer = 10, fraction = 2, message = "【打款金额】数值必须大于等于0，其中整数位最多{integer}位，小数位最多{fraction}位")
    private BigDecimal paymentAmount;

    /**
     * 流程实例ID
     */
    @NotNull(message = "流程实例ID不能为空")
    private Long approvalId;
}
